package com.liqy.huoshan.api;

import com.liqy.huoshan.entity.HttpResultExtra;
import com.liqy.huoshan.entity.LiveExtra;
import com.liqy.huoshan.entity.LiveFeed;

import java.util.ArrayList;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Headers;

import static com.liqy.huoshan.api.HsConstants.HUOSHAN_DOMAIN_NAME;
import static me.jessyan.retrofiturlmanager.RetrofitUrlManager.DOMAIN_NAME_HEADER;

/**
 * Created by liqy on 2017/12/26.
 */

public interface HuoShanApi {

    @Headers(DOMAIN_NAME_HEADER + HUOSHAN_DOMAIN_NAME)
    @GET("hotsoon/feed/?type=live")
    public Observable<HttpResultExtra<ArrayList<LiveFeed>, LiveExtra>> liveFeed();
}
